package com.itmatter.classifier.domain;

/**
 *
 * @author Daniel Fisla, dfisla@itmatter.com, ITMATTER Inc., http://www.itmatter.com, Copyright 2010, LGPLv3
 */
public class ClassifierFeatureId implements java.io.Serializable {

    private String feature;
    private String category;

    /**
     * 
     */
    public ClassifierFeatureId() {
    }

    /**
     * 
     * @param feature
     * @param category
     */
    public ClassifierFeatureId(String feature, String category) {
        this.feature = feature;
        this.category = category;

    }
/*
    public boolean equals(Object other) {
        if ((this == other)) {
            return true;
        }
        if ((other == null)) {
            return false;
        }
        if (!(other instanceof ClassifierFeatureId)) {
            return false;
        }
        ClassifierFeatureId castOther = (ClassifierFeatureId) other;

        return (this.getFeature().equals(castOther.getFeature())
                && (this.getCategory().equals(castOther.getCategory())));
    }

    public int hashCode() {
        int result = 17;

        result = 37 * result + this.getFeature().hashCode() + this.getCategory().hashCode();

        return result;
    }
*/
    /**
     * 
     * @return
     */
    public String getCategory() {
        return category;
    }

    /**
     * 
     * @param category
     */
    public void setCategory(String category) {
        this.category = category;
    }

    /**
     * 
     * @return
     */
    public String getFeature() {
        return feature;
    }

    /**
     * 
     * @param feature
     */
    public void setFeature(String feature) {
        this.feature = feature;
    }
}
